package top.ucat.x.system.service.management;

import top.ucat.box.starter.mybatis.plus.base.service.BaseCrudService;
import top.ucat.x.system.entity.SysRole;
import top.ucat.x.system.entity.SysUserRole;

import java.util.List;
import java.util.Set;

/**
 * @Auther: Jun
 * @Date: 2020/4/23 15:20
 * @Description:
 */
public interface SysUserRoleService extends BaseCrudService<SysUserRole> {


    List<SysUserRole> getUserRoles(String userId);

    void saveUserRole(List<SysUserRole> userRoles);

    void delUserRole(String userId);

    /**
     * 获取用户的角色
     *
     * @param userId
     * @return
     */
    Set<String> getUserRoleSigns(String userId);

}
